home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
trs141f.zip
/
NFMT.ZIP
/
CONFIG.H
next >
Wrap
C/C++ Source or Header
|
1992-07-20
|
2KB
|
96 lines
/*
* Compatability
*/
#define LARGE_MEM
/*
* The mips compiler claims to be __STDC__, but it is not.
*/
#ifdef host_mips
# ifndef __GNUC__
# undef __STDC__
# endif
#endif
#ifdef __STDC__
# define KNOWS_PROTO
# define HAS_STDLIB_H
# define HAS_STRING_H
# define HAS_MEMMOVE
# define HAS_STRCHR
#endif
#ifdef __GNUC__
# define KNOWS_PROTO
# define HAS_STDLIB_H
# define HAS_STRING_H
# define HAS_MEMMOVE
# define HAS_STRCHR
#endif
#ifdef host_mips
# undef HAS_MEMMOVE
# undef HAS_STDLIB_H
# define KNOWS_PROTO
# ifndef sgi
# ifndef SYSTYPE_BSD43
error must compile with -systype bsd43 on mips machine;
error {until they fix the bcopy() problem};
error {sorry mips has no #error directive};
# endif
# endif
#endif
#ifdef __TURBOC__
# define KNOWS_PROTO
# define HAS_STDLIB_H
# define HAS_STRING_H
# define HAS_IO_H
# define HAS_MEMMOVE
# define HAS_STRCHR
# undef LARGE_MEM
#endif
#ifdef KNOWS_PROTO
# define ARGS(x) x
#else
# define ARGS(x) ()
#endif
#ifdef HAS_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAS_STRING_H
# include <string.h>
#endif
#ifdef HAS_IO_H
# include <io.h>
#endif
/* NB: this has to be safe for overlapping regions */
#ifndef HAS_MEMMOVE
# define memmove(dest,src,n) bcopy(src,dest,n)
#endif
#ifndef HAS_STRCHR
# define strchr(s,c) index(s,c)
#endif
/*
* program limits: max. words and characters in a paragraph.
*/
#ifndef LARGE_MEM
# define MAXWORDS 1000
# define MAXCHARS 5000
#else
# define MAXWORDS 20000L
# define MAXCHARS 60000L
#endif